<?php
// +----------------------------------------------------------------------
// | ThinkSNS
// +----------------------------------------------------------------------
// | Copyright (c) 2009 http://www.thinksns.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: nonant <nonant@thinksns.com>
// +----------------------------------------------------------------------
//
//
//  中文动态模板列表。
//
//  return array(
//	'space_upbaseinfo' => array(
//		'title'    =>   "{actor} 更新了基本资料",
//		'info'     =>   "更新资料",
//		'body'     =>   '',
//		//'comment_type' => ""
//	),
//
//);
//
if(!function_exists('getFileLists')){
	function getFileLists($num,$names,$fids,$gid,$shownum=10){
		for($i=0;$i<$num;$i++){
			if ($i<$shownum) {
				$html.="<a href=\"".U('group/File/detail',array('gid'=>$gid,'fid'=>$fids[$i]))."\">$names[$i]</a>&nbsp;&nbsp;";
			}else{
				$html.="&nbsp;...";break;
			}
			
		}
		return $html;
	}
}

return array(
	'space_record' => array(
		'title'    =>   "<span class='band_C_C'>{$actor}：{$content} </span>",
		'info'     =>   "Update records",
		'comment_type' => "record"
	),
	'space_follow' => array(
		'title'    =>   "{$actor} follow  <a href='".U('space/view','uid='.$followuid)."'>{$followuname}</a>",
		'info'     =>   "Concerned colleague",
	),
	'space_follow_much' => array(
		'title'    =>   "{$actor} follow  {$followuname} about {$countnum} colleagues",
		'info'     =>   "Concerned about the import colleagues",
	),	
	'ask_post' => array(
		'title'    =>   "{$actor} Launched a question
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='C_C'>{$content}</div><div class='R_att'><a href={$url}>Launched a question</a></div>",
		'info'     =>   "Published issues",
	),

	'ask_replay' => array(
		'title'    =>   "{$actor} Answered question
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='ico_cite'>{$content}<span class='ico_cite2'></span></div>",
		'info'     =>   "Answered question",

	),
	
	'blog_post' => array(
		'title'    =>   "{$actor} Published a blog
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='C_B band_C_C'>{$content}</div><div class='R_att'></div>",
		'info'     =>   "Published blog",
	),
	
	'blog_comment' => array(
		'title'    =>   "{$actor} Comment {$user}  {$appName}
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='ico_cite'>{$content}<span class='ico_cite2'></span></div>",
		'info'     =>   "Comment blog",
	),
	
	'wiki_post' => array(
		'title'    =>   "{$actor} Published a wiki post
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='C_C'>{$content}</div><div class='R_att'></div>",
		'info'     =>   "Published wiki",
	),
	
	'wiki_comment' => array(
		'title'    =>   "{$actor} Comment {$user} {$appName}
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='ico_cite'>{$content}<span class='ico_cite2'></span></div>",
		'info'     =>   "Comment wiki",
	),
	

	'ask_setBest' => array(
		'title'    =>   "{$actor} set {$user}'s answer set to the best answer
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='ico_cite'>{$content}<span class='ico_cite2'></span></div><div class='R_att'><a href={$url}>View</a></div>",
		'info'     =>   "Set to the best answer",
	),

	'ask_appendScore' => array(
		'title'    =>   "{$actor} Raised the issue of offering a reward
						<span class='s_t'>{$title}</span>",
		'body'	   =>   "<div class='C_C'>{$content}</div><div class='R_att'><a href={$url}>Involved in answering</a></div>",
		'info'     =>   "Raise the issue reward",
	),

	'share_ask' => array(
		'title'    =>   "{$actor} share a ask
						<span class='roow_dyn L'><a href='".U('ask/index/detail','id='.$aimId)."'>{$title}</a></span>
						<div class='p_c C_C'>{$intro}</div>",
		'body'	   =>   infoCss($info)."<div class='R_att'><a href='".U('ask/index/detail','id='.$aimId)."'>Involved in answering</a></div>
						",
		'info'     =>   "Share ask",
	),
	
	'share_blog' => array(
		'title'    =>   "{$actor} share a blog
						<span class='roow_dyn'><a href='".U('blog/index/detail',array('id'=>$aimId,'uid'=>$fromUid))."'>{$title}</a></span>
						<div class='p_c C_C'>{$intro}</div>",
		'body'	   =>   infoCss($info)."<div class='R_att'><a href='".U('blog/index/detail',array('id'=>$aimId,'uid'=>$fromUid))."'>Detail</a></div>
						",
		'info'     =>   "Share blog",
	),
	
	'share_wiki' => array(
		'title'    =>   "{$actor} share a wiki
						<span class='roow_dyn'><a href='".U('wiki/Index/detail','id='.$aimId)."'>{$title}</a></span>
						",
		'body'	   =>   infoCss($info)."<div class='R_att'><a href='".U('wiki/Index/detail','id='.$aimId)."'>Detail</a></div>
						",
		'info'     =>   "Share wiki",
	),	
	
	/*************************   团队空间动态开始 *******************/
	'group_join' => array(
		'title'   => "{$actor} join group  <private>[ {$APPLINK} ]</private>",
		'info'    => "Join group",
		'private' => true,    //私有动态模板
	),	
	
	'group_invite' => array(
		'title'   => "{$actor} accept <a href='".U('space/View/index',array('uid'=>$inviteuser))."' target='_blank'>".getUserName($inviteuser)."</a>'s invitation to join  <private>[ {$APPLINK} ]</private>",
		'info'    => "Join group",
		'private' => true,
	),
	
	'group_forum' => array(
		'title'   => "{$actor} <private>in group [ {$APPLINK} ] </private>have posted a thread   <span class='s_t'><a href='".U('group/Forum/detail',array('tid'=>$tid,'gid'=>$gid))."'>{$title}</a></span>",
		'title_template' => " <a href='".U('group/Forum/detail',array('tid'=>$tid,'gid'=>$gid))."'>{$title}</a>",
		'body'	   =>  infoCss($info)."<div class='R_att'><a href='".U('group/Forum/detail',array('tid'=>$tid,'gid'=>$gid))."'>View</a></div>",
		'private' => true,
	),	

	'group_file' => array(
		'title'   => "{$actor} <private>in group [{$APPLINK}]</private> have uploaded {$num} files",   
		'body'	  => "<div class='C_C'>".getFileLists($num,$names,$fids,$gid)."</div>",               
		'title_template'   =>"have uploaded {$num} files",                  
		'info'    => "Upload file",
		'private' => true,
	),
	
	'group_blog' => array(
		'title'    =>   "{$actor} <private>in group [{$APPLINK}] </private>have posted a blog
						<span class='s_t'>{$title}</span>",
		'title_template' => "{$title}",
		'body'	   =>   "<div class='C_B band_C_C'>{$content}</div><div class='R_att'></div>",
		'info'     =>   "Published blog",
		'private' => true,
	),	
	
	'group_share_blog' => array(
		'title'    =>   "{$actor} have shared a<private>group [{$APPLINK}]'s </private> blog 
						<span class='roow_dyn'><a href='".U('group/blog/detail',array('id'=>$aimId,'gid'=>$gid))."'>{$title}</a></span>
						<span>{$intro}</span>",
		'body'	   =>   infoCss($info)."<div class='R_att'><a href='".U('group/blog/detail',array('id'=>$aimId,'gid'=>$gid))."'>Detail</a></div>
						",
		'info'     =>   "share group blog",
		'private' => true,
	),	
	
	'group_share_wiki' => array(
		'title'    =>   "{$actor} have shared a <private>[{$APPLINK}]'s</private> wiki
						<span class='roow_dyn'><a href='".U('group/Wiki/detail',array('id'=>$aimId,'gid'=>$gid))."'>{$title}</a></span>
						",
		'body'	   =>   infoCss($info)."<div class='R_att'><a href='".U('group/Wiki/detail',array('id'=>$aimId,'gid'=>$gid))."'>Detail</a></div>
						",
		'info'     =>   "share group blog",
		'private' => true,
	),
	
	'group_wiki' => array(
		'title'    =>   "{$actor} in group <private>[{$APPLINK}]</private> create wiki
						<span class='roow_dyn'><a href='".U('group/Wiki/detail',array('id'=>$aimId,'gid'=>$gid))."'>{$title}</a></span>
						",
		'title_template' => "<a href='".U('group/Wiki/detail',array('id'=>$aimId,'gid'=>$gid))."'>{$title}</a>",
		'body'	   =>   "<div class='C_B band_C_C'></div><div class='R_att'><a href='".U('group/Wiki/detail',array('id'=>$aimId,'gid'=>$gid))."'>Detail</a></div>",
		'info'     =>   "create a group wiki ",
		'private' => true,
	),
	
		'group_reply' => array(
		'title'    =>   "{$actor} in group space <private>[{$APPLINK}] </private> {$title} Submit Comment",
		'title_template' => "{$title}",
		'body'	   =>   "<div class='C_B band_C_C'>{$content}</div><div class='R_att'></div>",
		'info'     =>   "Submit Comment",
		'private' => true,
	),
	/*************************   团队空间动态结束 *******************/
	
	'bbs_topic' => array(
		'title'    =>   "{$actor} on [ {$board} ] post a thread
						<span class='roow_dyn'><a href='".U('bbs/Index/detail',array('id'=>$tid))."'>{$title}</a></span>
						",
		'body'	   =>   infoCss($info)."<div class='R_att'><a href='".U('bbs/index/detail',array('id'=>$tid))."'>Detail</a></div>",
		'info'     =>   "post thread",
	),
	
	'share_topic' => array(
		'title'    =>   "{$actor} have shared a thread on bbs
						<span class='roow_dyn'><a href='".U('bbs/Index/detail',array('id'=>$aimId))."'>{$title}</a></span>
						<div class='p_c C_C'>{$intro}</div>",
		'body'	   =>   infoCss($info)."<div class='R_att'><a href='".U('bbs/index/detail',array('id'=>$aimId))."'>Detail</a></div>",
		'info'     =>   "share thread",		
	),	
);
?>